package me.xingyannian.zhaopin.repository;

import me.xingyannian.zhaopin.entity.ChangCi;
import me.xingyannian.zhaopin.entity.SubjectStageJobStatistics;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;

import java.util.List;

public interface SubjectStageJobStatisticsRepository extends JpaRepository<SubjectStageJobStatistics, Long> {
    @Query("select s from SubjectStageJobStatistics s where s.changCi = :#{#changCi}")
    List<SubjectStageJobStatistics> findAllByChangCi(ChangCi changCi);

    void deleteAllByChangCi(ChangCi changCi);
}